```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MyBatis-Plus CRUD 自动化解析 | 技术小馆</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            color: #333;
            line-height: 1.6;
        }
        .hero {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .drop-cap::first-letter {
            font-family: 'Noto Serif SC', serif;
            float: left;
            font-size: 3.5em;
            line-height: 0.8;
            margin: 0.1em 0.1em 0.1em 0;
            color: #4a5568;
        }
        .card {
            transition: all 0.3s ease;
            border-radius: 0.5rem;
            overflow: hidden;
        }
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        }
        .sql-code {
            font-family: 'Courier New', Courier, monospace;
            background-color: #f8f9fa;
            border-left: 4px solid #667eea;
        }
        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            transition: all 0.3s ease;
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
        .feature-icon {
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <section class="hero text-white py-20 px-4 md:px-0">
        <div class="container mx-auto max-w-5xl px-4">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-10 md:mb-0">
                    <h1 class="text-4xl md:text-5xl font-bold mb-4 leading-tight">MyBatis-Plus <br>CRUD 自动化解析</h1>
                    <p class="text-xl opacity-90 mb-8">探索 MyBatis-Plus 如何简化数据访问层开发，自动生成高效SQL</p>
                    <div class="flex space-x-4">
                        <a href="#features" class="btn-primary px-6 py-3 rounded-full font-medium inline-flex items-center">
                            <i class="fas fa-rocket mr-2"></i> 核心特性
                        </a>
                        <a href="#crud" class="bg-white text-indigo-700 px-6 py-3 rounded-full font-medium inline-flex items-center">
                            <i class="fas fa-code mr-2"></i> CRUD 示例
                        </a>
                    </div>
                </div>
                <div class="md:w-1/2 md:pl-12">
                    <div class="bg-white bg-opacity-20 p-6 rounded-xl backdrop-filter backdrop-blur-sm">
                        <pre class="sql-code p-4 text-sm md:text-base overflow-x-auto"><code class="text-white">// Java 代码示例
User user = new User();
user.setName("张三");
user.setAge(25);
userMapper.insert(user);</code></pre>
                        <div class="mt-4 text-xs text-indigo-100">
                            <i class="fas fa-arrow-down mr-2"></i> 自动转换为
                        </div>
                        <pre class="sql-code p-4 text-sm md:text-base overflow-x-auto mt-2"><code class="text-white">INSERT INTO user (name, age) 
VALUES ('张三', 25);</code></pre>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Features Section -->
    <section id="features" class="py-16 px-4 md:px-0 bg-white">
        <div class="container mx-auto max-w-5xl px-4">
            <div class="text-center mb-16">
                <h2 class="text-3xl font-bold text-gray-800 mb-4">MyBatis-Plus 核心优势</h2>
                <p class="text-gray-600 max-w-2xl mx-auto">MyBatis-Plus 通过自动化 SQL 生成，极大简化了数据访问层开发</p>
            </div>
            
            <div class="grid md:grid-cols-3 gap-8">
                <div class="card bg-white p-6 border border-gray-100 shadow-sm">
                    <div class="feature-icon mb-6">
                        <i class="fas fa-bolt text-xl"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3 text-gray-800">自动 CRUD</h3>
                    <p class="text-gray-600">内置通用 Mapper，无需编写基本 CRUD 方法，自动生成高效 SQL 语句。</p>
                </div>
                
                <div class="card bg-white p-6 border border-gray-100 shadow-sm">
                    <div class="feature-icon mb-6">
                        <i class="fas fa-search text-xl"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3 text-gray-800">条件构造器</h3>
                    <p class="text-gray-600">强大的 QueryWrapper 和 UpdateWrapper，支持复杂条件查询和更新。</p>
                </div>
                
                <div class="card bg-white p-6 border border-gray-100 shadow-sm">
                    <div class="feature-icon mb-6">
                        <i class="fas fa-layer-group text-xl"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3 text-gray-800">分页插件</h3>
                    <p class="text-gray-600">内置分页插件，支持多种数据库分页查询，无需手动处理分页逻辑。</p>
                </div>
            </div>
        </div>
    </section>

    <!-- CRUD Section -->
    <section id="crud" class="py-16 px-4 md:px-0 bg-gray-50">
        <div class="container mx-auto max-w-5xl px-4">
            <div class="text-center mb-16">
                <h2 class="text-3xl font-bold text-gray-800 mb-4">CRUD 操作与 SQL 生成</h2>
                <p class="text-gray-600 max-w-2xl mx-auto">MyBatis-Plus 在运行时根据实体类和映射关系自动生成 SQL</p>
            </div>

            <div class="bg-white rounded-xl shadow-md overflow-hidden">
                <div class="p-6 border-b border-gray-200 bg-gray-50">
                    <h3 class="text-xl font-semibold text-gray-800">1. 基本操作方法</h3>
                    <p class="text-gray-600 mt-2">MyBatis-Plus 提供了 <code class="bg-gray-100 px-2 py-1 rounded">BaseMapper</code> 接口，包含常用的 CRUD 方法。</p>
                </div>
                
                <div class="p-6 border-b border-gray-200">
                    <h4 class="text-lg font-semibold text-gray-800 mb-4 flex items-center">
                        <span class="w-6 h-6 bg-indigo-100 text-indigo-600 rounded-full flex items-center justify-center mr-3">1</span>
                        <span>查询单条记录 <code class="ml-2 bg-gray-100 px-2 py-1 rounded">selectById</code></span>
                    </h4>
                    <div class="grid md:grid-cols-2 gap-6">
                        <div>
                            <div class="text-sm font-medium text-gray-500 mb-2">Java 代码</div>
                            <pre class="sql-code p-4 text-sm"><code>User user = userMapper.selectById(1L);</code></pre>
                        </div>
                        <div>
                            <div class="text-sm font-medium text-gray-500 mb-2">生成的 SQL</div>
                            <pre class="sql-code p-4 text-sm"><code>SELECT * FROM user WHERE id = 1;</code></pre>
                        </div>
                    </div>
                </div>
                
                <div class="p-6 border-b border-gray-200">
                    <h4 class="text-lg font-semibold text-gray-800 mb-4 flex items-center">
                        <span class="w-6 h-6 bg-indigo-100 text-indigo-600 rounded-full flex items-center justify-center mr-3">2</span>
                        <span>插入记录 <code class="ml-2 bg-gray-100 px-2 py-1 rounded">insert</code></span>
                    </h4>
                    <div class="grid md:grid-cols-2 gap-6">
                        <div>
                            <div class="text-sm font-medium text-gray-500 mb-2">Java 代码</div>
                            <pre class="sql-code p-4 text-sm"><code>User user = new User();
user.setName("张三");
user.setAge(25);
userMapper.insert(user);</code></pre>
                        </div>
                        <div>
                            <div class="text-sm font-medium text-gray-500 mb-2">生成的 SQL</div>
                            <pre class="sql-code p-4 text-sm"><code>INSERT INTO user (name, age) 
VALUES ('张三', 25);</code></pre>
                        </div>
                    </div>
                </div>
                
                <div class="p-6 border-b border-gray-200">
                    <h4 class="text-lg font-semibold text-gray-800 mb-4 flex items-center">
                        <span class="w-6 h-6 bg-indigo-100 text-indigo-600 rounded-full flex items-center justify-center mr-3">3</span>
                        <span>更新记录 <code class="ml-2 bg-gray-100 px-2 py-1 rounded">updateById</code></span>
                    </h4>
                    <div class="grid md:grid-cols-2 gap-6">
                        <div>
                            <div class="text-sm font-medium text-gray-500 mb-2">Java 代码</div>
                            <pre class="sql-code p-4 text-sm"><code>User user = new User();
user.setId(1L);
user.setName("李四");
userMapper.updateById(user);</code></pre>
                        </div>
                        <div>
                            <div class="text-sm font-medium text-gray-500 mb-2">生成的 SQL</div>
                            <pre class="sql-code p-4 text-sm"><code>UPDATE user SET name = '李四' 
WHERE id = 1;</code></pre>
                        </div>
                    </div>
                </div>
                
                <div class="p-6">
                    <h4 class="text-lg font-semibold text-gray-800 mb-4 flex items-center">
                        <span class="w-6 h-6 bg-indigo-100 text-indigo-600 rounded-full flex items-center justify-center mr-3">4</span>
                        <span>删除记录 <code class="ml-2 bg-gray-100 px-2 py-1 rounded">deleteById</code></span>
                    </h4>
                    <div class="grid md:grid-cols-2 gap-6">
                        <div>
                            <div class="text-sm font-medium text-gray-500 mb-2">Java 代码</div>
                            <pre class="sql-code p-4 text-sm"><code>userMapper.deleteById(1L);</code></pre>
                        </div>
                        <div>
                            <div class="text-sm font-medium text-gray-500 mb-2">生成的 SQL</div>
                            <pre class="sql-code p-4 text-sm"><code>DELETE FROM user WHERE id = 1;</code></pre>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Advanced Features -->
    <section class="py-16 px-4 md:px-0 bg-white">
        <div class="container mx-auto max-w-5xl px-4">
            <div class="text-center mb-16">
                <h2 class="text-3xl font-bold text-gray-800 mb-4">高级特性</h2>
                <p class="text-gray-600 max-w-2xl mx-auto">MyBatis-Plus 提供更多强大功能来满足复杂业务需求</p>
            </div>

            <div class="grid md:grid-cols-2 gap-8">
                <div class="card bg-gray-50 p-6 border border-gray-200 rounded-xl">
                    <h3 class="text-xl font-semibold text-gray-800 mb-4 flex items-center">
                        <i class="fas fa-filter text-indigo-500 mr-3"></i>
                        <span>条件构造器</span>
                    </h3>
                    <p class="text-gray-600 mb-4">使用 <code class="bg-gray-100 px-2 py-1 rounded">QueryWrapper</code> 构建复杂查询条件。</p>
                    <div class="mb-4">
                        <div class="text-sm font-medium text-gray-500 mb-2">Java 代码</div>
                        <pre class="sql-code p-4 text-sm"><code>QueryWrapper&lt;User&gt; wrapper = new QueryWrapper<>();
wrapper.eq("name", "John")
       .gt("age", 18)
       .orderByDesc("create_time");
List&lt;User&gt; users = userMapper.selectList(wrapper);</code></pre>
                    </div>
                    <div>
                        <div class="text-sm font-medium text-gray-500 mb-2">生成的 SQL</div>
                        <pre class="sql-code p-4 text-sm"><code>SELECT * FROM user 
WHERE name = 'John' AND age > 18 
ORDER BY create_time DESC;</code></pre>
                    </div>
                </div>

                <div class="card bg-gray-50 p-6 border border-gray-200 rounded-xl">
                    <h3 class="text-xl font-semibold text-gray-800 mb-4 flex items-center">
                        <i class="fas fa-copy text-indigo-500 mr-3"></i>
                        <span>分页查询</span>
                    </h3>
                    <p class="text-gray-600 mb-4">内置分页插件，简化分页查询实现。</p>
                    <div class="mb-4">
                        <div class="text-sm font-medium text-gray-500 mb-2">Java 代码</div>
                        <pre class="sql-code p-4 text-sm"><code>Page&lt;User&gt; page = new Page<>(1, 10);
IPage&lt;User&gt; userPage = userMapper.selectPage(page, null);</code></pre>
                    </div>
                    <div>
                        <div class="text-sm font-medium text-gray-500 mb-2">生成的 SQL</div>
                        <pre class="sql-code p-4 text-sm"><code>SELECT * FROM user LIMIT 0, 10;</code></pre>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Visualization -->
    <section class="py-16 px-4 md:px-0 bg-gray-50">
        <div class="container mx-auto max-w-5xl px-4">
            <div class="text-center mb-16">
                <h2 class="text-3xl font-bold text-gray-800 mb-4">MyBatis-Plus SQL 生成流程</h2>
                <p class="text-gray-600 max-w-2xl mx-auto">可视化展示 MyBatis-Plus 如何将 Java 方法调用转换为 SQL 语句</p>
            </div>

            <div class="bg-white p-6 rounded-xl shadow-md">
                <div class="mermaid">
                    graph TD
                        A[Java 方法调用] --> B(MyBatis-Plus 拦截器)
                        B --> C{解析方法名和参数}
                        C -->|selectById| D[生成 SELECT 语句]
                        C -->|insert| E[生成 INSERT 语句]
                        C -->|updateById| F[生成 UPDATE 语句]
                        C -->|deleteById| G[生成 DELETE 语句]
                        D --> H[执行 SQL 并返回结果]
                        E --> H
                        F --> H
                        G --> H
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-gray-900 text-white py-12 px-4">
        <div class="container mx-auto max-w-5xl px-4">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="mb-6 md:mb-0">
                    <h3 class="text-xl font-bold mb-2">技术小馆</h3>
                    <p class="text-gray-400">探索技术之美，分享开发经验</p>
                </div>
                <div>
                    <a href="http://www.yuque.com/jtostring" class="text-gray-300 hover:text-white transition duration-300 flex items-center">
                        <i class="fas fa-book-open mr-2"></i> 访问语雀空间
                    </a>
                </div>
            </div>
            <div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-500 text-sm">
                &copy; 2023 技术小馆. 保留所有权利.
            </div>
        </div>
    </footer>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
        
        // 平滑滚动
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                document.querySelector(this.getAttribute('href')).scrollIntoView({
                    behavior: 'smooth'
                });
            });
        });
    </script>
</body>
</html>
```